home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PListQuery.h < prev    next >
C/C++ Source or Header  |  1996-07-12  |  1KB  |  46 lines

  1. /*
  2.  *--- PListQuery.h --------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:06 PM by Paul Ferguson.
  5.  *
  6.  * Description:  This is the base class for query classes that
  7.  * consist of a count field (short) in the first two bytes,
  8.  * followed by that number of fixed or variable length records.
  9.  *-------------------------------------------------------------------------
  10.  */
  11. #ifndef __PListQuery__
  12. #define __PListQuery__
  13.  
  14. #ifdef __MWERKS__
  15. #pragma once
  16. #endif
  17.  
  18. #include "PHandleQuery.h"
  19.  
  20. #include "PListMom.h"
  21.  
  22. class PListQuery : public PHandleQuery
  23. {
  24.  
  25. public:
  26.  
  27.     PListQuery() {};
  28.     PListQuery(ePMQuery query);
  29.  
  30.     short Count() const { return listMom.Count(); }
  31.     void Reset() { listMom.Reset(); Scan(); }
  32.     void operator++(int) { Scan(); }
  33.     
  34. protected:
  35.  
  36.     PListMom    listMom;            // keeps track of the list of items
  37.     
  38.     void InitListMom();
  39.  
  40.     virtual void Scan() = 0;        // every subclass must implement
  41. };
  42.  
  43. #endif
  44.  
  45. // end of PListQuery.h
  46.